home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / prog / cfuncs.zip / SELECT.DOC < prev    next >
Text File  |  1991-01-03  |  1KB  |  27 lines

  1. /*----------------------------select-------------------------------*/
  2. /*DESCRIPTION: Displays text and allows the user to choose one     */
  3. /*    of the displayed lines.                       */
  4. /*                                   */
  5. /*INPUT:
  6.     X & Y - coordinates the upper left corner of the first
  7.         choice appears at
  8.     TotChoices - number of choices
  9.     Choices - string of chars, 1 char for each choice & the char
  10.           for the chosen choice is returned.
  11.     Text - array of pointers to char that point to the text
  12.         to be displayed
  13.     TextColor, BGcolor - foreground & background text color
  14.     BarColor - color of selection bar
  15.     BarTextColor - color of text in bar
  16.     Abort - 3 & 23- don't accept Esc key
  17.     Abort - >7 double space displayed text.
  18. RETURNS: corresponding char in Choices of selection.
  19.     Abort = 1 Esc pressed
  20.     Abort = 0 Esc not pressed.
  21. USES: strspc, GetCursor, OffCursor, SetCursor
  22. -------------------------------------------------------------------*/
  23.  
  24. int select(int X, int Y, int TotChoices, char *Choices, char *Text[],
  25.         int TextColor, int BGcolor, int BarColor,
  26.         int BarTextColor, int *Abort)
  27.